/*
 *                  BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 * 
 * Created on Nov 3, 2006
 * 
 */

package org.biojava.services.das.servlets;

import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.sql.DataSource;

import org.biojava.services.das.dao.DasSourceManager;
import org.quartz.JobExecutionException;

import uk.ac.sanger.dasregistry.timer.CleanLogs;
/**
 * servlet to take a page request for testing only
 * @author jw12
 *
 */

public class CleanLogFileServlet 	
	extends GenericServlet {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void service(ServletRequest arg0, ServletResponse arg1) throws ServletException, IOException {
				
		CleanLogs clean=new CleanLogs();
		try {
			clean.execute(null);
		} catch (JobExecutionException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	

	
	
}
